<{include file="../common/header.tpl"}>
<table width="100%" border="0" cellspacing="0">
	<tr>
		<td width="13%" valign="top">
            <{include file="../common/left.tpl"}>
		</td>
		
    <td width="87%" valign="top">
            <table width="100%" border="0" cellspacing="0">
            <tr>
                <td>
                <div class="pad_10">
                <div class="table-list">
                    <table width="100%">
                    <thead>
                        <tr>
                                <th width="58">问卷编号</th>
                                <th width="132">问卷名称</th>
                                <th width="121">ZIP文件名</th>
                                <th width="120">更新时间</th>
                                <th width="330">处理结果</th>
                                <th width="115">状态</th>
                                <th width="100">操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <{foreach $list as $key => $val}>
                        <tr onMouseOver="this.className = 'tr2'" onMouseOut="this.className = 'tr1'" class="tr1" id="nqz_<{$val.nqz_id}>">
                                <td align="center"><{$val.identifier}></td>
                                <td><{$val.question_name}></td>
                                <td><{$val.zip_name}></td>
                                <td><{$val.update_time}></td>
                                <td><a href="javascript:;" onclick="layer.alert('<{$val.remark}>');"><{$val.remark|msubstr:30}></a></td>
                                <td><{if $val.is_dispose==1}>未处理<{else}>已处理<{/if}></td>
                                <td><a href="javascript:;" name="delete" rel="<{$val.nqz_id}>">删除</a></td>
                        </tr>
                        <{/foreach}>
                    </tbody>
                    </table>

                    <div style="float:right;"><{$page}></div>
            </div>
        </div>

        </td>
        </tr>
        </table>

		</td>

	</tr>
</table>
<script type="text/javascript">
	$(document).ready(function ($) {
		$('a[name="delete"]').click(function () {
			var id = $(this).attr('rel');
			if (id == '') {
				return false;
			}
			$or = confirm('你确定要删除吗？');
			if ($or) {
				$.ajax({
					type: 'post',
					async: true,
					dataType: "json",
					data: {'nqz_id':id},
					url: '/webadmin/question/DelZip',
					success: function (data) {
						alert(data.msg);
						if (!data.ok) {
							return false;
						} else {
							$('#nqz_'+id).remove();
						}
					}
				});
			}
		});
	});
</script>
<{include file="../common/footer.tpl"}>